//
//  LocationHelper.h
//  test1
//
//  Created by Rip. on 16/2/26.
//  Copyright © 2016年 RipGSH. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <UIKit/UIKit.h>

@protocol searchDelegate <NSObject>

@required

- (void)addressInfoToView:(NSDictionary *)dictionary andCoordinate:(CLLocationCoordinate2D)locationCoordinate2D;

@end

@interface LocationHelper : NSObject<CLLocationManagerDelegate>


@property (nonatomic, strong) CLLocationManager *locationManager;
@property (nonatomic, strong) CLGeocoder *geocoder;

@property (nonatomic, copy) NSDictionary *locationDic;

@property (nonatomic, assign)CLLocationCoordinate2D coordinate;

@property (nonatomic, assign)id<searchDelegate>delegate;

//+ (id)shareLocation;

- (instancetype)init;

- (void) initLocationManager;
- (void) initGeocoder;

- (void)searchPlace:(NSString *)placeName;

- (void)reverseCoder;

- (void)startLocation;

- (void)stopLocation;

@end
